﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace WebFirst.Entities
{
    /// <summary>
    /// 转诊流程表
    ///</summary>
    [SugarTable("referral")]
    public class Referral
    {
        
     
        /// <summary>
        /// 备  注:
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Id" ,IsPrimaryKey = true,IsIdentity = true) ]
        public int? Id  { get; set;  } 
     
        /// <summary>
        /// 备  注:病人id
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="PatientId" ) ]
        public string? PatientId  { get; set;  } 
     
        /// <summary>
        /// 备  注:转诊机构
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ReferringFacility" ) ]
        public string? ReferringFacility  { get; set;  } 
     
        /// <summary>
        /// 备  注:转诊类型
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Type" ) ]
        public string? Type  { get; set;  } 
     
        /// <summary>
        /// 备  注:所在科室
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="DeptCode" ) ]
        public string? DeptCode  { get; set;  } 
     
        /// <summary>
        /// 备  注:申请时间
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="CreateDate" ) ]
        public DateTime? CreateDate  { get; set;  } 
     
        /// <summary>
        /// 备  注:转向机构
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="SteeringMechanism" ) ]
        public string? SteeringMechanism  { get; set;  } 
     
        /// <summary>
        /// 备  注:病情说明
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Described" ) ]
        public string? Described  { get; set;  } 
     
        /// <summary>
        /// 备  注:接诊科室
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ReceivingDept" ) ]
        public string? ReceivingDept  { get; set;  } 
     
        /// <summary>
        /// 备  注:转诊医生
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ReferringDoctor" ) ]
        public string? ReferringDoctor  { get; set;  } 
        /// <summary>
        /// 备  注:审核医生
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName= "AuditDoctor") ]
        public string? AuditDoctor { get; set;  } 
     
        /// <summary>
        /// 备  注:接诊医生
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ReceivingDoctor" ) ]
        public string? ReceivingDoctor  { get; set;  }

        /// <summary>
        /// 备  注:转诊状态 1 已申请 2 已审核 3 已纳管 4 拒绝审核 5 拒绝纳管
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="Status" ) ]
        public string? Status  { get; set;  } 
     
        /// <summary>
        /// 备  注:审核日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="AuditDate" ) ]
        public DateTime? AuditDate  { get; set;  } 
     
        /// <summary>
        /// 备  注:纳管日期
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName="ManagementDate" ) ]
        public DateTime? ManagementDate  { get; set;  } 
    

    }
    
}